package com.mengmaedu.servicefeign.controller;

import com.mengmaedu.servicefeign.feign.SchedualRibbonHi;
import com.mengmaedu.servicefeign.feign.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: xixi
 * @Date: 2018/11/27 11:13
 * @Description:
 */
@RestController
public class HiController {

    @Autowired
    private SchedualRibbonHi schedualRibbonHi;

    @Autowired
    private SchedualServiceHi schedualServiceHi;

    @GetMapping("/ribbon_test")
    public String test() {
        return schedualRibbonHi.test();
    }

    @GetMapping("/feign_test")
    public String test1() {
        return schedualServiceHi.test1();
    }
}
